package com.caesar.Test;

import com.caesar.method_son.Laptop;
import com.caesar.method_son.Smartphone;
import com.caesar.method_son.Television;

/**
 * @author caesar
 * @date 2025/7/7
 * @Description:
 * @apiNote
 */
public class TestElectronicDevice {
    public static void main(String[] args) {
        Smartphone s = new Smartphone("华为","mate50");
        System.out.println(s);
        s.powerOn();
        s.sendSMS();
        s.powerOff();
        System.out.println();

        Laptop c = new Laptop("联想","拯救者Y9000");
        System.out.println(c);
        c.powerOn();
        c.connectToInternet();
        c.powerOff();
        System.out.println();

        Television t = new Television("小米","A55");
        System.out.println(t);
        t.powerOn();
        t.changeChannel();
        t.powerOff();
    }
}
